package Person.ith_18;

import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Scanner;

class Student {
    private String sid;
    private String name;
    private String age;
    private String address;

    public Student(String sid, String name, String age, String address) {
        this.sid = sid;
        this.name = name;
        this.age = age;
        this.address = address;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}

public class StudentManager {
    public static void main(String[] args) {

        while(true){


        System.out.println("------------欢迎来到学生管理系统-------------");
        System.out.println("1 添加学生");
        System.out.println("2 删除学生");
        System.out.println("3 修改学生");
        System.out.println("4 查看所有学生");
        System.out.println("5 推出");
        System.out.println(" 请输入你的选择");

        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        switch(line){
            case "1":
                System.out.println("添加学生");
                break;
            case "2":
                System.out.println("删除学生");
                break;
            case "3":
                System.out.println("修改学生");
                break;
            case "4":
                System.out.println("查看所有学生");
                break;
            case "5":
                System.out.println("谢谢使用");
                /*break;*/
              System.exit(0);//JVM退出
        }
    }

    }
   public static void addStudent(ArrayList<Student> array){
        Scanner sc = new Scanner(System.in);
       System.out.println("请输入学生学号");
       String sid = sc.nextLine();
   }





}
